.class public Les/z00;
.super Ljava/lang/Object;
.source "WifiSettings.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/z00$e;,
        Les/z00$b;,
        Les/z00$d;,
        Les/z00$c;,
        Les/z00$f;
    }
.end annotation


# static fields
.field public static l:Ljava/lang/String; = "ES_"


# instance fields
.field private final a:Landroid/content/IntentFilter;

.field private final b:Landroid/content/BroadcastReceiver;

.field private final c:Les/z00$d;

.field private d:Landroid/net/wifi/WifiManager;

.field private e:Les/y00;

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/z00$b;",
            ">;"
        }
    .end annotation
.end field

.field private g:Landroid/net/wifi/WifiInfo;

.field private h:Z

.field private i:Landroid/content/Context;

.field private j:Les/z00$f;

.field private k:Les/z00$c;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Les/z00$c;Les/y00$b;Les/z00$f;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/z00;->h:Z

    .line 3
    iput-object p1, p0, Les/z00;->i:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Les/z00;->k:Les/z00$c;

    .line 5
    iput-object p4, p0, Les/z00;->j:Les/z00$f;

    .line 6
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    iput-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.WIFI_STATE_CHANGED"

    .line 7
    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 8
    iget-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.SCAN_RESULTS"

    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 9
    iget-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.NETWORK_IDS_CHANGED"

    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 10
    iget-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.supplicant.STATE_CHANGE"

    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 11
    iget-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.STATE_CHANGE"

    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 12
    iget-object p1, p0, Les/z00;->a:Landroid/content/IntentFilter;

    const-string p2, "android.net.wifi.RSSI_CHANGED"

    invoke-virtual {p1, p2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 13
    new-instance p1, Les/z00$a;

    invoke-direct {p1, p0}, Les/z00$a;-><init>(Les/z00;)V

    iput-object p1, p0, Les/z00;->b:Landroid/content/BroadcastReceiver;

    .line 14
    new-instance p1, Les/z00$d;

    const/4 p2, 0x0

    invoke-direct {p1, p0, p2}, Les/z00$d;-><init>(Les/z00;Les/z00$a;)V

    iput-object p1, p0, Les/z00;->c:Les/z00$d;

    .line 15
    iget-object p1, p0, Les/z00;->i:Landroid/content/Context;

    const-string p2, "wifi"

    invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/net/wifi/WifiManager;

    iput-object p1, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    .line 16
    new-instance p1, Les/y00;

    iget-object p2, p0, Les/z00;->i:Landroid/content/Context;

    invoke-direct {p1, p2, p3}, Les/y00;-><init>(Landroid/content/Context;Les/y00$b;)V

    iput-object p1, p0, Les/z00;->e:Les/y00;

    .line 17
    invoke-virtual {p1}, Les/y00;->b()V

    .line 18
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Les/z00;->f:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Les/z00;)Landroid/net/wifi/WifiManager;
    .locals 0

    .line 2
    iget-object p0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    return-object p0
.end method

.method public static a(Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    if-eqz p0, :cond_0

    return-object p0

    :cond_0
    const-string p0, ""

    return-object p0
.end method

.method private a(Landroid/content/Intent;)V
    .locals 2

    .line 22
    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.net.wifi.WIFI_STATE_CHANGED"

    .line 23
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 v0, 0x4

    const-string v1, "wifi_state"

    .line 24
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    invoke-direct {p0, p1}, Les/z00;->d(I)V

    goto :goto_0

    :cond_0
    const-string v1, "android.net.wifi.SCAN_RESULTS"

    .line 25
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 26
    invoke-direct {p0}, Les/z00;->h()V

    goto :goto_0

    :cond_1
    const-string v1, "android.net.wifi.NETWORK_IDS_CHANGED"

    .line 27
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 28
    invoke-direct {p0}, Les/z00;->h()V

    goto :goto_0

    :cond_2
    const-string v1, "android.net.wifi.supplicant.STATE_CHANGE"

    .line 29
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string v0, "newState"

    .line 30
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    check-cast p1, Landroid/net/wifi/SupplicantState;

    .line 31
    invoke-static {p1}, Landroid/net/wifi/WifiInfo;->getDetailedStateOf(Landroid/net/wifi/SupplicantState;)Landroid/net/NetworkInfo$DetailedState;

    move-result-object p1

    invoke-direct {p0, p1}, Les/z00;->a(Landroid/net/NetworkInfo$DetailedState;)V

    goto :goto_0

    :cond_3
    const-string v1, "android.net.wifi.STATE_CHANGE"

    .line 32
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    const-string v0, "networkInfo"

    .line 33
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    check-cast p1, Landroid/net/NetworkInfo;

    .line 34
    invoke-virtual {p1}, Landroid/net/NetworkInfo;->getDetailedState()Landroid/net/NetworkInfo$DetailedState;

    move-result-object p1

    .line 35
    invoke-direct {p0, p1}, Les/z00;->a(Landroid/net/NetworkInfo$DetailedState;)V

    goto :goto_0

    :cond_4
    const-string p1, "android.net.wifi.RSSI_CHANGED"

    .line 36
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_5

    const/4 p1, 0x0

    .line 37
    invoke-direct {p0, p1}, Les/z00;->a(Landroid/net/NetworkInfo$DetailedState;)V

    :cond_5
    :goto_0
    return-void
.end method

.method private a(Landroid/net/NetworkInfo$DetailedState;)V
    .locals 3

    .line 38
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->isWifiEnabled()Z

    move-result v0

    if-nez v0, :cond_0

    .line 39
    iget-object p1, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {p1}, Les/z00$d;->a()V

    return-void

    .line 40
    :cond_0
    sget-object v0, Landroid/net/NetworkInfo$DetailedState;->OBTAINING_IPADDR:Landroid/net/NetworkInfo$DetailedState;

    if-ne p1, v0, :cond_1

    .line 41
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->a()V

    goto :goto_0

    .line 42
    :cond_1
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->b()V

    .line 43
    :goto_0
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object v0

    iput-object v0, p0, Les/z00;->g:Landroid/net/wifi/WifiInfo;

    .line 44
    iget-object v1, p0, Les/z00;->j:Les/z00$f;

    invoke-interface {v1, v0, p1}, Les/z00$f;->a(Landroid/net/wifi/WifiInfo;Landroid/net/NetworkInfo$DetailedState;)V

    .line 45
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_1
    if-ltz v0, :cond_2

    .line 46
    iget-object v1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/z00$b;

    iget-object v2, p0, Les/z00;->g:Landroid/net/wifi/WifiInfo;

    invoke-virtual {v1, v2, p1}, Les/z00$b;->a(Landroid/net/wifi/WifiInfo;Landroid/net/NetworkInfo$DetailedState;)V

    add-int/lit8 v0, v0, -0x1

    goto :goto_1

    .line 47
    :cond_2
    iget-boolean v0, p0, Les/z00;->h:Z

    if-eqz v0, :cond_4

    sget-object v0, Landroid/net/NetworkInfo$DetailedState;->CONNECTED:Landroid/net/NetworkInfo$DetailedState;

    if-eq p1, v0, :cond_3

    sget-object v0, Landroid/net/NetworkInfo$DetailedState;->DISCONNECTED:Landroid/net/NetworkInfo$DetailedState;

    if-eq p1, v0, :cond_3

    sget-object v0, Landroid/net/NetworkInfo$DetailedState;->FAILED:Landroid/net/NetworkInfo$DetailedState;

    if-ne p1, v0, :cond_4

    :cond_3
    const/4 p1, 0x0

    .line 48
    iput-boolean p1, p0, Les/z00;->h:Z

    .line 49
    :cond_4
    invoke-direct {p0}, Les/z00;->h()V

    return-void
.end method

.method static synthetic a(Les/z00;Landroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/z00;->a(Landroid/content/Intent;)V

    return-void
.end method

.method public static c(I)Ljava/lang/String;
    .locals 3

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    and-int/lit16 v1, p0, 0xff

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    shr-int/lit8 v2, p0, 0x8

    and-int/lit16 v2, v2, 0xff

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    shr-int/lit8 v2, p0, 0x10

    and-int/lit16 v2, v2, 0xff

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    shr-int/lit8 p0, p0, 0x18

    and-int/lit16 p0, p0, 0xff

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private d(I)V
    .locals 1

    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    .line 3
    iget-object p1, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {p1}, Les/z00$d;->b()V

    .line 4
    invoke-direct {p0}, Les/z00;->h()V

    goto :goto_0

    .line 5
    :cond_0
    iget-object p1, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {p1}, Les/z00$d;->a()V

    .line 6
    iget-object p1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->clear()V

    .line 7
    iget-object p1, p0, Les/z00;->k:Les/z00$c;

    if-eqz p1, :cond_1

    .line 8
    invoke-interface {p1}, Les/z00$c;->i()V

    :cond_1
    :goto_0
    return-void
.end method

.method private h()V
    .locals 8

    .line 1
    iget-object v0, p0, Les/z00;->k:Les/z00$c;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/z00$b;

    .line 3
    iput-boolean v2, v1, Les/z00$b;->a:Z

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    .line 4
    :try_start_0
    iget-object v1, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v1}, Landroid/net/wifi/WifiManager;->getScanResults()Ljava/util/List;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    .line 5
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    if-eqz v0, :cond_7

    .line 6
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    :goto_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_7

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/wifi/ScanResult;

    .line 7
    iget-object v3, v1, Landroid/net/wifi/ScanResult;->SSID:Ljava/lang/String;

    if-eqz v3, :cond_2

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-eqz v3, :cond_2

    iget-object v3, v1, Landroid/net/wifi/ScanResult;->capabilities:Ljava/lang/String;

    const-string v4, "[IBSS]"

    .line 8
    invoke-virtual {v3, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_2

    iget-object v3, v1, Landroid/net/wifi/ScanResult;->capabilities:Ljava/lang/String;

    const-string v4, "EAP"

    .line 9
    invoke-virtual {v3, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    goto :goto_2

    .line 10
    :cond_3
    iget-object v3, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    :cond_4
    :goto_3
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_5

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/z00$b;

    .line 11
    invoke-virtual {v6, v1}, Les/z00$b;->a(Landroid/net/wifi/ScanResult;)Z

    move-result v7

    if-eqz v7, :cond_4

    .line 12
    iput-boolean v4, v6, Les/z00$b;->a:Z

    const/4 v5, 0x1

    goto :goto_3

    :cond_5
    if-nez v5, :cond_2

    .line 13
    new-instance v3, Les/z00$b;

    iget-object v5, p0, Les/z00;->i:Landroid/content/Context;

    invoke-direct {v3, v5, p0, v1}, Les/z00$b;-><init>(Landroid/content/Context;Les/z00;Landroid/net/wifi/ScanResult;)V

    .line 14
    invoke-virtual {v3}, Les/z00$b;->c()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_6

    invoke-virtual {v3}, Les/z00$b;->c()Ljava/lang/String;

    move-result-object v1

    sget-object v5, Les/z00;->l:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 15
    iget-object v1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v1, v4, v3}, Ljava/util/List;->add(ILjava/lang/Object;)V

    goto :goto_4

    .line 16
    :cond_6
    iget-object v1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 17
    :goto_4
    iput-boolean v4, v3, Les/z00$b;->a:Z

    goto :goto_2

    .line 18
    :cond_7
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr v0, v2

    :goto_5
    if-ltz v0, :cond_9

    .line 19
    iget-object v1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/z00$b;

    iget-boolean v1, v1, Les/z00$b;->a:Z

    if-ne v1, v2, :cond_8

    .line 20
    iget-object v1, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    :cond_8
    add-int/lit8 v0, v0, -0x1

    goto :goto_5

    .line 21
    :cond_9
    iget-object v0, p0, Les/z00;->k:Les/z00$c;

    invoke-interface {v0}, Les/z00$c;->i()V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 3
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public a(I)Les/z00$b;
    .locals 1

    if-ltz p1, :cond_0

    .line 4
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-gt p1, v0, :cond_0

    .line 5
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/z00$b;

    return-object p1

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Landroid/net/wifi/WifiConfiguration;)Z
    .locals 6

    .line 6
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConfiguredNetworks()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    move-object v3, p1

    const/4 v2, 0x0

    .line 7
    :goto_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-ge v2, v4, :cond_1

    .line 8
    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/net/wifi/WifiConfiguration;

    .line 9
    iget-object v4, v3, Landroid/net/wifi/WifiConfiguration;->SSID:Ljava/lang/String;

    if-eqz v4, :cond_0

    iget-object v5, p1, Landroid/net/wifi/WifiConfiguration;->SSID:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 10
    iget-object v4, p1, Landroid/net/wifi/WifiConfiguration;->allowedKeyManagement:Ljava/util/BitSet;

    iput-object v4, v3, Landroid/net/wifi/WifiConfiguration;->allowedKeyManagement:Ljava/util/BitSet;

    .line 11
    iget-object v4, p1, Landroid/net/wifi/WifiConfiguration;->preSharedKey:Ljava/lang/String;

    iput-object v4, v3, Landroid/net/wifi/WifiConfiguration;->preSharedKey:Ljava/lang/String;

    goto :goto_1

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 12
    :cond_1
    :goto_1
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ne v2, v0, :cond_2

    goto :goto_2

    :cond_2
    move-object p1, v3

    .line 13
    :cond_3
    :goto_2
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0, p1}, Landroid/net/wifi/WifiManager;->updateNetwork(Landroid/net/wifi/WifiConfiguration;)I

    move-result v0

    const/4 v2, -0x1

    if-ne v0, v2, :cond_4

    .line 14
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0, p1}, Landroid/net/wifi/WifiManager;->addNetwork(Landroid/net/wifi/WifiConfiguration;)I

    move-result v0

    :cond_4
    if-eq v0, v2, :cond_5

    .line 15
    iget-object v2, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v2, v0, v1}, Landroid/net/wifi/WifiManager;->enableNetwork(IZ)Z

    .line 16
    iput v0, p1, Landroid/net/wifi/WifiConfiguration;->networkId:I

    const/4 v1, 0x1

    .line 17
    iput v1, p1, Landroid/net/wifi/WifiConfiguration;->priority:I

    .line 18
    iget-object v2, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v2, p1}, Landroid/net/wifi/WifiManager;->updateNetwork(Landroid/net/wifi/WifiConfiguration;)I

    .line 19
    iget-object p1, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {p1, v0, v1}, Landroid/net/wifi/WifiManager;->enableNetwork(IZ)Z

    .line 20
    iget-object p1, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {p1}, Landroid/net/wifi/WifiManager;->reconnect()Z

    .line 21
    iput-boolean v1, p0, Les/z00;->h:Z

    :cond_5
    return v1
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Les/z00;->d:Landroid/net/wifi/WifiManager;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getDhcpInfo()Landroid/net/DhcpInfo;

    move-result-object v0

    .line 4
    iget v0, v0, Landroid/net/DhcpInfo;->serverAddress:I

    invoke-static {v0}, Les/z00;->c(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method

.method public b(I)[Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/z00;->f:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/z00$b;

    invoke-virtual {p1}, Les/z00$b;->f()[Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public c()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/z00;->e:Les/y00;

    invoke-virtual {v0}, Les/y00;->a()V

    .line 2
    iget-object v0, p0, Les/z00;->i:Landroid/content/Context;

    iget-object v1, p0, Les/z00;->b:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 3
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->a()V

    return-void
.end method

.method public d()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/z00;->e:Les/y00;

    invoke-virtual {v0}, Les/y00;->b()V

    .line 2
    iget-object v0, p0, Les/z00;->i:Landroid/content/Context;

    iget-object v1, p0, Les/z00;->b:Landroid/content/BroadcastReceiver;

    iget-object v2, p0, Les/z00;->a:Landroid/content/IntentFilter;

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method public e()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/z00;->e:Les/y00;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Les/y00;->a(Z)Z

    .line 2
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->b()V

    return-void
.end method

.method public f()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->a()V

    .line 2
    iget-object v0, p0, Les/z00;->e:Les/y00;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/y00;->a(Z)Z

    return-void
.end method

.method public g()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/z00;->c:Les/z00$d;

    invoke-virtual {v0}, Les/z00$d;->a()V

    return-void
.end method
